package com.xiaozhengkeji.xiaozhengblog.base.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.xiaozhengkeji.xiaozhengblog.base.mapper.ArticleDiscussEntityMapper;
import com.xiaozhengkeji.xiaozhengblog.base.entitys.ArticleDiscussEntity;
@Service
public class ArticleDiscussEntityService{

    @Resource
    private ArticleDiscussEntityMapper articleDiscussEntityMapper;

    
    public int deleteByPrimaryKey(Integer id) {
        return articleDiscussEntityMapper.deleteByPrimaryKey(id);
    }

    
    public int insert(ArticleDiscussEntity record) {
        return articleDiscussEntityMapper.insert(record);
    }

    
    public int insertSelective(ArticleDiscussEntity record) {
        return articleDiscussEntityMapper.insertSelective(record);
    }

    
    public ArticleDiscussEntity selectByPrimaryKey(Integer id) {
        return articleDiscussEntityMapper.selectByPrimaryKey(id);
    }

    
    public int updateByPrimaryKeySelective(ArticleDiscussEntity record) {
        return articleDiscussEntityMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(ArticleDiscussEntity record) {
        return articleDiscussEntityMapper.updateByPrimaryKey(record);
    }

    
    public List<ArticleDiscussEntity> queryByAll(ArticleDiscussEntity articleDiscussEntity) {
        return articleDiscussEntityMapper.queryByAll(articleDiscussEntity);
    }

    
    public List<ArticleDiscussEntity> queryByAid(Integer aid) {
        return articleDiscussEntityMapper.queryByAid(aid);
    }

    
    public List<ArticleDiscussEntity> queryByCommentUser(String commentUser) {
        return articleDiscussEntityMapper.queryByCommentUser(commentUser);
    }

}
